package com.yuanxiao.common.api.entity.dto;

import cn.hutool.json.JSONObject;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 订单价目表
 *
 * @author luozongsheng
 * @email lzs1115@foxmail.com
 * @date 2022-04-10 23:33:17
 */
@ApiModel("OrderPriceItemEntity")
@Data
public class OrderPriceItemDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

	//
    @ApiModelProperty("")
    private Long deptId;

	//
    @ApiModelProperty("")
    private String deptIds;

	//订单ID
    @ApiModelProperty("订单ID")
    private Long orderId;

	//订单编号
    @ApiModelProperty("订单编号")
    private String orderCode;

	//数据ID
    @ApiModelProperty("数据ID")
    private Long itemId;

	//价目名称
    @ApiModelProperty("价目名称")
    private String itemName;

	//价目类型（打车路线：route，优惠券：coupon，折扣：discount，积分兑换：intergral）
    @ApiModelProperty("价目类型（订单原价：order，优惠券：coupon，折扣：discount，积分兑换：intergral）")
    private String itemType;

	//金额
    @ApiModelProperty("金额")
    private BigDecimal itemPrice;

	//价目快照
    private JSONObject itemJson;

    //必传参数Key
    @ApiModelProperty("必传参数Key")
    private String argsKey;



}
